package com.lovecanon.jzjl.web.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

//@RequestMapping("/")
@Controller
public class indexController {

    @RequestMapping("/home/{path}")
    public String goHome(@PathVariable String path) {
        return  "home/"+path;
    }

    @RequestMapping("/component/{pathOne}/{pathTwo}")
    public String goComponent(@PathVariable String pathOne,@PathVariable String pathTwo) {
        return  "component/"+pathOne+"/"+pathTwo;
    }
    @RequestMapping("/template/{path}")
    public String goTemplate(@PathVariable String path){
        return "template/"+path;
    }
    @RequestMapping("/template/{pathOne}/{pathTwo}/{pathThree}")
    public String goTemplate(@PathVariable String pathOne,@PathVariable String pathTwo,@PathVariable String pathThree){
        return "template/"+pathOne +"/"+pathTwo + "/"+pathThree;
    }
}
